package com.iot.demo.device;

import com.ux.iot.core.annotation.MessageHandler;
import com.ux.iot.core.annotation.MessageListener;
import com.ux.iot.jetlinks.contant.JetlinkTopicContants;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author caixiaodao
 * @version 1.0
 * 功能描述
 * 设备处理
 * @date 2021/11/21 16:19
 */
@Component
@MessageListener(JetlinkTopicContants.REPORT_PROPERTY)
@Slf4j
public class ReportDeviceHandler {
    @MessageHandler
    public  void handler(String msg){
        log.info("设备消息更新属性数据{}",msg);
    }
}
